﻿namespace FFF.Test.Entity.Demo
{
    using System;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using Abp.Domain.Entities;
    using Abp.AutoMapper;
    using FFF.Test.Entity.Demo.View;
    using FFF.Test.Entity.Framework.Entity;

	/// <summary>
    /// 学生课程表(编辑)
    /// </summary>
	[Table("Demo_Student2Course")]
    [Display(Name = "学生课程表(编辑)", Description = "学生课程表(编辑)")]
    [AutoMapFrom(typeof(ViewDemoStudent2Course))] 
    public partial class DemoStudent2CourseEntity : BaseEntity<Guid>
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Column("Student2CourseGUID")]
        [Display(Name = "学生课程表(编辑)主键", Description = "学生课程表(编辑)主键")]
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public override Guid Id { get; set; }

		/// <summary>
        /// 课程GUID
        /// </summary>
		[Display(Name = "课程GUID", Description = "课程GUID")]
        [Column("CourseGUID")]
        public Guid? CourseGUID { get; set; }   

		/// <summary>
        /// 学生GUID
        /// </summary>
		[Display(Name = "学生GUID", Description = "学生GUID")]
        [Column("StudentGUID")]
        public Guid? StudentGUID { get; set; }   

		/// <summary>
        /// 分数
        /// </summary>
		[Display(Name = "分数", Description = "分数")]
        [Column("Score")]
        public decimal Score { get; set; }   
    }
}
